import { Module } from 'vuex';
import { versionControlState } from './types';
import { RootState } from '../../type';
const state: versionControlState = {
    versionTreeData: []
};

type StateType = typeof state

const versionControl: Module<StateType, RootState> = {
    namespaced: true,
    state,
    mutations: {
        SET_VERSIONTREEDATA: (state, payload) => {
            state.versionTreeData = payload;
        }
    }
};

export default versionControl;
